﻿package jokers.JAdv {
	import jokers.*;
	import jokers.JAdv.*;
	
	public class JChapter1 extends JChapter {
		//初始化章节
		public override function initChapter():void{
			JPara.timer_total = 121;
			JPara.crystalNum = 7;
			
			JPara.m_search.visible = false;
			JPara.m_refresh.visible = false;
			
			JPara.toolEnable = "100000000000";
		}
		
		//特殊关卡会要求刷新特殊数据
		public override function run():void{
		}
		
		//是否胜利
		public override function isWin():Boolean{
			return JPara.powerHas > 0;
		}
		
		//文字版提醒
		public override function showTips():String{
			var ret:String = "";
			
			ret = "未消除的颜色：";
			if(JPara.powerHas == 0){
				ret = "能量：" + int(JPara.power) + "/" + JPara.POWER_LENGTH;
			}else{
				ret = "能量：收集完成！";
			}
			
			return ret;
		}
	}
	
}
